﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;

using transportsystem.DTO;
using transportsystem.DAO;
namespace transportsystem.BUS
{
    public class DaiLyBUS
    {
        public static DataTable getDaiLyList()
        {
            return DaiLyDAO.getDaiLyList();
        }

        public static DataTable getKhuVucList()
        {
            return DaiLyDAO.getKhuVucList();
        }

        public static DataTable getDaiLyTheoKhuVucList(string khuvuc)
        {
            return DaiLyDAO.getDaiLyTheoKhuVucList(khuvuc);
        }

        public static int getThaoTacDaiLy(params SqlParameter[] Params)
        {
            return DaiLyDAO.thaoTacDaiLy(Params);
        }
        public static int getCapNhatDaiLy1(params SqlParameter[] Params)
        {
            return DaiLyDAO.CapNhatDaiLy1(Params);
        }
        public static int getCapNhatDaiLy2(params SqlParameter[] Params)
        {
            return DaiLyDAO.CapNhatDaiLy2(Params);
        }
        public static bool deleteDaiLy(DaiLy dl)
        {
            return DaiLyDAO.deleteDaiLy(dl);
        }
        public static DataSet getDaiLy2(params SqlParameter[] Params)
        {
            return DaiLyDAO.getDaiLy2(Params);
        }
        public static DataTable getDaiLyListVu()
        {
            return DaiLyDAO.getDaiLyListVu();
        }
    }
}
